/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javafxapplication1;

/**
 *
 * @author my
 */
public class ColumnInfoWrapper {

    private String name = new String();
    private Integer type = new Integer(0);
    private String min = new String();
    private String max = new String();
    private String defaultVal = new String();
    private String sequence = new String();
    private String promptTitle = new String();
    private String promptContent = new String();

    public static ColumnInfo unwrap(ColumnInfoWrapper w) {
        final ColumnInfo c = new ColumnInfo();
        c.setName(w.getName());
        c.setType(w.getType());
        c.setMin(w.getMin());
        c.setMax(w.getMax());
        c.setDefaultVal(w.getDefaultVal());
        c.setSequence(w.getSequence());
        c.setPromptTitle(w.getPromptTitle());
        c.setPromptContent(w.getPromptContent());
        return c;
    }

    public static ColumnInfoWrapper wrap(ColumnInfo c) {
        final ColumnInfoWrapper w = new ColumnInfoWrapper();
        w.setName(c.getName());
        w.setType(c.getType());
        w.setMin(c.getMin());
        w.setMax(c.getMax());
        w.setDefaultVal(c.getDefaultVal());
        w.setSequence(w.getSequence());
        w.setPromptTitle(c.getPromptTitle());
        w.setPromptContent(c.getPromptContent());

        return w;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setMin(String min) {
        this.min = min;
    }

    public void setMax(String max) {
        this.max = max;
    }

    public void setDefaultVal(String defaultVal) {
        this.defaultVal = defaultVal;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public void setPromptTitle(String promptTitle) {
        this.promptTitle = promptTitle;
    }

    public void setPromptContent(String promptContent) {
        this.promptContent = promptContent;
    }

    public Integer getType() {
        return type;
    }

    public String getMin() {
        return min;
    }

    public String getMax() {
        return max;
    }

    public String getDefaultVal() {
        return defaultVal;
    }

    public String getSequence() {
        return sequence;
    }

    public String getPromptTitle() {
        return promptTitle;
    }

    public String getPromptContent() {
        return promptContent;
    }

}
